﻿//01.Describe the strings in C#. What is typical for the string data type? Describe the most important methods of the String class.

using System;

namespace Strings
{
    class Strings
    {
        static void Main()
        {
            Console.WriteLine("Strings are sequences of read-only characters. They have fixed length that we can get by .Length and we can also access each of their elements. Strings have lots of built-in C# methods that can be used:");
            Console.WriteLine("Methods:\nClone: Returns a reference to this instance of String.\nCompare: Compares the specified objects and returns an integer that indicates their relative position in the sort order.\nEquals: Determines whether this instance and a specified object, which must also be a String object, have the same value.\nFormat: Replaces one or more format items in a specified string with the string representation of a specified object.\nIndexOf: Reports the zero-based index of the first occurrence of the specified Unicode character in this string.\nSplit: Returns a string array that contains the substrings in this instance that are delimited by elements of a specified Unicode character array.\nSubstring: Retrieves a substring from this instance. The substring starts at a specified character position and continues to the end of the string.\nTrim(): Removes all leading and trailing white-space characters from the current String object.\nAnd many more.");
            Console.WriteLine("For further info check http://msdn.microsoft.com/en-us/library/system.string");
        }
    }
}
